package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.AnonymousCommentMapper;
import com.hpjpw.ido.domain.AnonymousComment;
import com.hpjpw.ido.service.IAnonymousCommentService;

/**
 * 撕逼墙的评论Service业务层处理
 * 
 * @author hpj
 * @date 2021-01-02
 */
@Service
public class AnonymousCommentServiceImpl implements IAnonymousCommentService 
{
    @Autowired
    private AnonymousCommentMapper anonymousCommentMapper;

    /**
     * 查询撕逼墙的评论
     * 
     * @param id 撕逼墙的评论ID
     * @return 撕逼墙的评论
     */
    @Override
    public AnonymousComment selectAnonymousCommentById(Long id)
    {
        return anonymousCommentMapper.selectAnonymousCommentById(id);
    }

    /**
     * 查询撕逼墙的评论列表
     * 
     * @param anonymousComment 撕逼墙的评论
     * @return 撕逼墙的评论
     */
    @Override
    public List<AnonymousComment> selectAnonymousCommentList(AnonymousComment anonymousComment)
    {
        return anonymousCommentMapper.selectAnonymousCommentList(anonymousComment);
    }

    /**
     * 新增撕逼墙的评论
     * 
     * @param anonymousComment 撕逼墙的评论
     * @return 结果
     */
    @Override
    public int insertAnonymousComment(AnonymousComment anonymousComment)
    {
        return anonymousCommentMapper.insertAnonymousComment(anonymousComment);
    }

    /**
     * 修改撕逼墙的评论
     * 
     * @param anonymousComment 撕逼墙的评论
     * @return 结果
     */
    @Override
    public int updateAnonymousComment(AnonymousComment anonymousComment)
    {
        return anonymousCommentMapper.updateAnonymousComment(anonymousComment);
    }

    /**
     * 批量删除撕逼墙的评论
     * 
     * @param ids 需要删除的撕逼墙的评论ID
     * @return 结果
     */
    @Override
    public int deleteAnonymousCommentByIds(Long[] ids)
    {
        return anonymousCommentMapper.deleteAnonymousCommentByIds(ids);
    }

    /**
     * 删除撕逼墙的评论信息
     * 
     * @param id 撕逼墙的评论ID
     * @return 结果
     */
    @Override
    public int deleteAnonymousCommentById(Long id)
    {
        return anonymousCommentMapper.deleteAnonymousCommentById(id);
    }
}
